package com.hu.pojo.dto.question;

import com.hu.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 查询题目请求
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class QuestionQueryRequest extends PageRequest implements Serializable {

    /**
     * 标题
     */
    @Size(max = 60)
    private String title;

    private Long questionBankId;

    /**
     * 标签列表
     */
    private List<String> tags;

    /**
     * 题目难度
     * 2: 困难
     * 1: 中等
     * 0: 简单
     */
    private Integer difficultyLevel;

    /**
     * 是否是会员专属
     * 1: vip
     */
    private boolean vip;

    private static final long serialVersionUID = 1L;
}